package com.fingard.dsp.bank.reqrespobj.elecbillquery;

import com.fingard.dsp.bank.reqrespobj.ReqRespHeader;
import com.fingard.dsp.bank.reqrespobj.RequestBase;
import com.fingard.dsp.bank.reqrespobj.elecbillquery.detail.ReqB001OperBillQryDetail;
import com.fingard.dsp.bank.reqrespobj.elecbillquery.detail.ReqB009DrawBillQryDetail;
import com.fingard.xml.XmlTextReader;

/**
 * Created by F on 2019/5/21.
 */
public class ReqB009DrawBillQry extends RequestBase {
    public ReqB009DrawBillQryDetail detail;
    private XmlTextReader xmlReader;

    public ReqB009DrawBillQry(XmlTextReader p_xmlReader, ReqRespHeader p_header) throws Exception {
        reqHeader = p_header;
        xmlReader = p_xmlReader;

    }

    public boolean readRecord() throws Exception {
        detail = null;
        if (xmlReader.read("/ATSYH/TransReq/TransParam")) {
            detail = new ReqB009DrawBillQryDetail(xmlReader.readedXElement);
            return true;
        } else {
            return false;
        }
    }
}
